import Vue from 'vue'
import VueRouter from 'vue-router'
import firstShuffling from "../views/index/component/firstShuffling"
import bigSwiper from "../views/index/component/bigSwiper"
import index from "../views/index/index"
import product from "../views/product/product"
import laboratory from "../views/laboratory/laboratory"
import about from "../views/about/about"
import news from "../views/news/news"
import detail from "../views/detail/detail"
import secondShuffling from "../views/index/component/secondShuffling";
import animate from "../views/index/component/animate";
import forthShuffling from "../views/index/component/forthShuffling";
import bottomFoot from "../components/bottomFoot";
// import topHeade from "../components/topHeade";
Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    redirect:"/index"
  },
  // {
  //   path: '/topHeade',
  //   name: 'topHeade',
  //   component:  topHeade
  // },
  {
    path: '/news',
    name: 'news',
    component:  news
  },
  {
    path: '/detail',
    name: 'detail',
    component:  detail
  },
  {
    path: '/about',
    name: 'about',
    component:  about
  },
  {
    path: '/forthShuffling',
    name: 'forthShuffling',
    component:  forthShuffling
  },
  {
    path: '/laboratory',
    name: 'laboratory',
    component:  laboratory
  },
  {
    path: '/secondShuffling',
    name: 'secondShuffling',
    component:  secondShuffling
  },
  {
    path: '/firstShuffling',
    name: 'firstShuffling',
    component:  firstShuffling
  },
  {
    path: '/animate',
    name: 'animate',
    component:  animate
  },
  {
    path: '/index',
    name: 'index',
    component: index
  },
  {
    path: '/bigSwiper',
    name: 'bigSwiper',
    component: bigSwiper
  },
  {
    path: '/bottomFoot',
    name: 'bottomFoot',
    component: bottomFoot
  },
  {
    path: '/product',
    name: 'product',
    component:  product
  },
  // {
  //   path: '/product',
  //   name: 'product',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/product/product')
  // }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
